package service;

import core.Page;
import domain.Student;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 于金鹏
 * @Date 2024/12/16 16:25
 * @Package StudentCheckSystem
 */
public interface StudentService {
    List<Student> getAllStudents(Student student) throws SQLException;

    int addStudent(Student student) throws SQLException;

    int deleteStudent(int id) throws SQLException;

    int updateStudent(Student student) throws SQLException;

    Student getStudentById(int id) throws SQLException;

    Page<Student> getStudentPage(int pageNum, int pageSize, Student student) throws SQLException;

}
